package com.is.common.permissions;

import java.util.List;

/**
 * PermissionCallback
 * Created by Administrator on 2017/3/29 0029.
 */

public interface PermissionCallback {
    /**
     * has all permission
     * @param allPerms all permissions
     */
    void hasPermission(List<String> allPerms);

    /**
     * denied some permission
     * @param deniedPerms denied permission
     * @param grantedPerms granted permission
     * @param hasPermanentlyDenied has permission denied permanently
     */
    void noPermission(List<String> deniedPerms, List<String> grantedPerms, Boolean hasPermanentlyDenied);
}

